﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/Admin.master" AutoEventWireup="true" CodeFile="Edit.aspx.cs" Inherits="Admin_User_Edit" Theme="Admin" %>

<asp:Content ID="Content2" ContentPlaceHolderID="h" Runat="Server">
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHolder" Runat="Server">
<div id="content-box">
	<div class="border">
		<div class="padding">
			<div id="toolbar-box">
   			<div class="t"><div class="t"><div class="t"></div></div></div>
			<div class="m">
				<div class="toolbar" id="toolbar">
				<table class="toolbar">
				<tr>
					<td class="button" id="toolbar-save">
					<asp:LinkButton runat="server" ID="lnkSave" CssClass="toolbar" OnClick="lnkSave_Click" ValidationGroup="vldEditUser">
					    <span class="icon-32-save" title="Save"></span>
					    <asp:Literal ID="lblSave" runat="server" meta:resourcekey="lblSave" />
					</asp:LinkButton>
					</td>
					<td class="button" id="toolbar-cancel">
					<asp:LinkButton runat="server" ID="lnkClose" CssClass="toolbar" OnClick="lnkClose_Click">
						<span class="icon-32-cancel" title="Close"></span>
						<asp:Literal ID="lblClose" runat="server" meta:resourcekey="lblClose" />
					</asp:LinkButton>
					</td>
				</tr>
				</table>
				</div>
				<div class="header icon-48-user"><asp:Literal ID="lblUserManager" runat="server" meta:resourcekey="lblUserManager" /></div>
				<div class="clr"></div>
			</div>
			<div class="b"><div class="b"><div class="b"></div></div></div>
			</div>
			<div class="clr"></div>
			<div id="element-box">
				<div class="t"><div class="t"><div class="t"></div></div></div>
				<div class="m">
					<div class="col width-50">
						<fieldset class="adminform">
						<legend><asp:Literal ID="lblUserDetail" runat="server" meta:resourcekey="lblUserDetail" /></legend>
						<table class="admintable" cellspacing="1">
						<tr>
							<td style="width:170px;" class="key">
							    <asp:Label runat="server" ID="lbFullName" AssociatedControlID="txtFullName" meta:resourcekey="lbFullName" />
							</td>
							<td>
							    <asp:TextBox runat="server" ID="txtFullName" CssClass="inputbox" Width="175px"></asp:TextBox>
							    <asp:RequiredFieldValidator ID="vldFullName" runat="server"
							        ControlToValidate="txtFullName"
							        Display="Dynamic"
							        ValidationGroup="vldEditUser" meta:resourcekey="vldFullName" />
							</td>
						</tr>
						<tr>
							<td class="key">
							    <asp:Label runat="server" ID="lbUserName" AssociatedControlID="txtUserName" meta:resourcekey="lbUserName" />
							</td>
							<td>
							    <asp:TextBox runat="server" ID="txtUserName" CssClass="inputbox" Width="175px"></asp:TextBox>
							    <asp:RequiredFieldValidator ID="vldUserName" runat="server"
							        ControlToValidate="txtUserName"
							        Display="Dynamic"
							        ValidationGroup="vldEditUser" meta:resourcekey="vldUserName" />
							</td>
						</tr>
						<tr>
							<td class="key">
							    <asp:Label runat="server" ID="lbEmail" AssociatedControlID="txtEmail" meta:resourcekey="lbEmail" />
							</td>
							<td>
							     <asp:TextBox runat="server" ID="txtEmail" CssClass="inputbox" Width="175px"></asp:TextBox>
                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
							        ControlToValidate="txtPassword"
							        Display="Dynamic"
							       ValidationGroup="vldEditUser" ><br />Email không được để rỗng</asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="uxRegularEmailValidator" runat="server" ErrorMessage="Địa chỉ email không đúng định dạng" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail" ValidationGroup="vldEditUser">Địa chỉ email không đúng định dạng</asp:RegularExpressionValidator>
                                 
							</td>
						</tr>
						<tr>
							<td class="key">
							    <asp:Label runat="server" ID="lbPassword" AssociatedControlID="txtPassword" meta:resourcekey="lbPassword" />
							</td>
							<td>
							    <asp:TextBox runat="server" ID="txtPassword" TextMode="Password" CssClass="inputbox" Width="175px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
							        ControlToValidate="txtPassword"
							        Display="Dynamic"
							        ValidationGroup="vldEditUser" ><br/>Pass không được để rỗng</asp:RequiredFieldValidator>
							</td>
						</tr>
						<tr>
							<td class="key">
							    <asp:Label runat="server" ID="lbVerifyPassword" AssociatedControlID="txtVerifyPassword" meta:resourcekey="lbVerifyPassword" />
							</td>
							<td>
							    <asp:TextBox runat="server" ID="txtVerifyPassword" TextMode="Password" CssClass="inputbox" Width="175px"></asp:TextBox>
							    <asp:CompareValidator runat="server" ID="vldComparePassword" ValidationGroup="vldEditUser"
							        ControlToValidate="txtVerifyPassword"
							        ControlToCompare="txtPassword" meta:resourcekey="vldComparePassword" />
							</td>
						</tr>
						<tr>
							<td class="key">
							    <asp:Label runat="server" ID="lblStatus" AssociatedControlID="chkStatus" meta:resourcekey="lblStatus">Trạng thái</asp:Label>
							</td>
							<td>
							    <asp:CheckBox runat="server" ID="chkStatus" meta:resourcekey="chkStatus" />
							</td>
						</tr>
						<tr>
							<td class="key"><asp:Literal ID="lblCreatedTime" runat="server" meta:resourcekey="lblCreatedTime" /></td>
							<td><asp:Label runat="server" ID="lbCreated"></asp:Label></td>
						</tr>
						<tr>
							<td class="key"><asp:Literal ID="lblLastVisited" runat="server" meta:resourcekey="lblLastVisited" /></td>
							<td><asp:Label runat="server" ID="lbLastVisited"></asp:Label></td>
						</tr>
						</table>
						</fieldset>
					</div>
					<div class="col width-50">
						<fieldset class="adminform">
						<legend><asp:Literal ID="lblUserRole" runat="server" meta:resourcekey="lblUserRole" /></legend>
						<table width="100%" class="paramlist admintable" cellspacing="1">
						<tr>
							<td class="key"><asp:Literal ID="lblRole" runat="server" meta:resourcekey="lblRole" /></td>
							<td>
							    <asp:CheckBoxList runat="server" ID="chkRoles" OnDataBound="chkRoles_DataBound"></asp:CheckBoxList>
							</td>
						</tr>
						</table>
						</fieldset>
					</div>
					<div class="clr"></div>
					<asp:HiddenField runat="server" ID="hdnId" />
				    <div class="clr"></div>
				</div>
				<div class="b"><div class="b"><div class="b"></div></div></div>
			</div>
			<noscript>Warning! JavaScript must be enabled for proper operation of the Administrator back-end.</noscript>
			<div class="clr"></div>
		</div>
		<div class="clr"></div>
	</div>
</div>
</asp:Content>

